home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / LANG / C / LIB / UNIXLIB37B / !UnixLib37 / src / clib / machine / h / endian
Text File  |  1996-11-09  |  1KB  |  41 lines

  1. /****************************************************************************
  2.  *
  3.  * $Source: /unixb/home/unixlib/source/unixlib37/src/clib/machine/h/RCS/endian,v $
  4.  * $Date: 1996/10/30 21:58:59 $
  5.  * $Revision: 1.2 $
  6.  * $State: Rel $
  7.  * $Author: unixlib $
  8.  *
  9.  * $Log: endian,v $
  10.  * Revision 1.2  1996/10/30 21:58:59  unixlib
  11.  * Massive changes made by Nick Burret and Peter Burwood.
  12.  *
  13.  * Revision 1.1  1996/09/16 21:23:51  unixlib
  14.  * Initial revision
  15.  *
  16.  ***************************************************************************/
  17.  
  18. #ifndef    __ENDIAN_H
  19. #define    __ENDIAN_H    1
  20.  
  21. /* Definitions for byte order, according to significance of bytes, from low
  22.    addresses to high addresses.  The value is what you get by putting '4'
  23.    in the most significant byte, '3' in the second most significant byte,
  24.    '2' in the second least significant byte, and '1' in the least
  25.    significant byte.  */
  26.  
  27. #define    __LITTLE_ENDIAN    1234
  28. #define    __BIG_ENDIAN    4321
  29. #define    __PDP_ENDIAN    3412
  30.  
  31. /* Byte order for RISC OS is little endian.  */
  32. #define __BYTE_ORDER __LITTLE_ENDIAN
  33.  
  34. /* For compatibility with BSD.  */
  35. #define    LITTLE_ENDIAN    __LITTLE_ENDIAN
  36. #define    BIG_ENDIAN    __BIG_ENDIAN
  37. #define    PDP_ENDIAN    __PDP_ENDIAN
  38. #define    BYTE_ORDER    __BYTE_ORDER
  39.  
  40. #endif
  41.